<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<script type="text/javascript" src="<%=basePath %>js/ckeditor/ckeditor.js"></script>
<title>添加消息</title>
<script type="text/javascript">
</script>
<style type="text/css">
div{
font-family: '微软雅黑';
font-size: 15px;
}
.tr{
width: 515px;
height: 40px;
}
.td1{
width: 100px;
height: 40px;
float: left;
}
.td2{
width: 200px;
height: 40px;
float: left;
}
.td3{
width: 140px;
height: 40px;
float: left;
}
.span{
color: red;
}

#province{
width: 80px;
height: 25px;
}
#citys{
width: 80px;
height: 25px;
}
#countys{
width: 80px;
height: 25px;
}
#streets{
width: 80px;
height: 25px;
}

</style>
</head>
<body>
<div style="width:550px;height: 380px;margin: 0px auto;background-color: #f0f8ff">
<form action="mess_saveMess" method="post" id="save">
<s:hidden name="messages.messId" value="%{messages.messId}"></s:hidden>
<div class="tr" >
<div class="td1" align="right"><span>消息类型:</span></div>
<div class="td2" ><s:select name="messages.type" list="#{1:'全站',0:'企业'}" theme="simple"  listKey="key" listValue="value" ></s:select></div>
<div class="td3"><span class="span">*</span></div>
</div>
<div class="tr" style="height: 230px;">
<div class="td1" align="right"><span>消息内容：</span></div>
<div class="td2"><s:textarea  rows="10" cols="30"  name="messages.messValue" required="true"  id=""  placeholder="请输入消息内容" value="%{messages.messValue}"></s:textarea></div>
<div class="td3"><span class="span" id="nameError">*</span></div>
</div>
<div class="tr">
<div class="td1" align="right"><span>开始时间：</span></div>
<div class="td2" ><s:textfield  name="messages.startDate" required="true" theme="simple" style="width:100%;height:80%"  id=""  placeholder=""  value="%{messages.startDate}" onclick="WdatePicker()"></s:textfield></div>
<div class="td3"><span class="span">*</span></div>
</div>
<div class="tr">
<div class="td1" align="right"><span>结束时间：</span></div>
<div class="td2" ><s:textfield  name="messages.endDate"  required="true"  id=""  theme="simple" style="width:100%;height:80%"  placeholder=""  value="%{messages.endDate}" onclick="WdatePicker()"></s:textfield></div>
<div class="td3"><span class="span">*</span></div>
</div>
</form>
</div>
</body>
</html>